/*
 * AccountPanel.h
 *
 *  Created on: 14.07.2009
 *      Author: h3llfire
 */

#ifndef ACCOUNTPANEL_H_
#define ACCOUNTPANEL_H_

#include <wx/wx.h>
#include <wx/listctrl.h>
#include "../../core/Account.h"

namespace Impp {

class AccountPanel : public wxPanel{

private:
	enum{
		ID_NEW_ACCOUNT = wxID_HIGHEST +1,
		ID_EDIT_ACCOUNT,
		ID_DELETE_ACCOUNT
	};

	wxListCtrl* list;

public:
	AccountPanel(wxWindow* parent);
	virtual ~AccountPanel();

	void onItemActivated(wxListEvent & event);
	void onNewAccount(wxCommandEvent & event);
	void onEditAccount(wxCommandEvent & event);
	void onDeleteAccount(wxCommandEvent & event);

private:
	Account* getSelectedAccount();

private:
    DECLARE_EVENT_TABLE()
};

}

#endif /* ACCOUNTPANEL_H_ */
